package com.example.demo.bean;

public class CheckBeanNum {


    public static void main(String[] args) {

        Elvis instance = Elvis.INSTANCE;
        Elvis instance2 = Elvis.INSTANCE;
        System.out.println(Elvis.getNumOfObJects());

        System.out.println("=======================");

        Elvis2 elvis2_1 = new Elvis2();
        Elvis2 elvis2_2 = new Elvis2();
        System.out.println(Elvis2.getNumOfObJects());
    }

}
